package top.aigoo.project01.entity.dto;

import top.aigoo.project01.entity.ProductCategory;
import top.aigoo.project01.entity.Shop;
import top.aigoo.project01.enums.ProductCategoryEnum;
import top.aigoo.project01.enums.ShopStateEnum;

import java.util.List;

/**
 * @Description: 商品分类
 * @Author: Mr.OYSHUO.欧阳大叔  mail:1642302522@qq.com
 * @Version 1.0.0
 * @Date: 2021/8/25 22:11
 */
public class ProductCategoryExecution {
    //状态
    private int state;
    //结果
    private String stateInfo;
    // 分类数量
    private int count;

    private ProductCategory productCategory;

    private List<ProductCategory> productCategoryList;

    // 无参构造器
    public ProductCategoryExecution() {
    }

    public ProductCategoryExecution(ProductCategoryEnum stateEnum) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /**
     * 店铺操作(增删改)成功使用的构造器
     */
    public ProductCategoryExecution(ProductCategoryEnum stateEnum, ProductCategory productCategory) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.productCategory = productCategory;
    }

    /**
     * 店铺操作(查找)成功使用的构造器
     */
    public ProductCategoryExecution(ProductCategoryEnum stateEnum, List<ProductCategory> productCategoryList) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.productCategoryList = productCategoryList;
    }


    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public ProductCategory getProductCategory() {
        return productCategory;
    }

    public void setProductCategory(ProductCategory productCategory) {
        this.productCategory = productCategory;
    }

    public List<ProductCategory> getProductCategoryList() {
        return productCategoryList;
    }

    public void setProductCategoryList(List<ProductCategory> productCategoryList) {
        this.productCategoryList = productCategoryList;
    }
}
